#ifndef __RS485_H
#define __RS485_H



#define RSUP_USART      USART1


#define RSUP_EN		PCout(12)
#define RSDOWN_EN	PDout(2)

#define ADDR1		PCin(13)
#define ADDR2		PCin(0)
#define ADDR3		PCin(1)
#define ADDR4		PCin(2)
#define ADDR5		PCin(3)

typedef enum {RS_RECV = 0,RS_SEND = !RS_RECV} RS485_Status;

void UP_USART_Config(int baudrate);

#endif
/*****************************END OF FILE******************************/
